<div class="cat-dm-r">
<link rel="stylesheet" type="text/css" href="<?php echo $this->config->item('base_url').$this->config->item('template'); ?>styles/style_v31.css">
<div class="ew_rightc flr">
    <p class="ew_tsp fll"><?php echo $productname;?></p>        
    <div class="ew_leftd fll clb">
        <div class="f-w100 m-10 box-img-sp">
            <div class="useMouseSlideShow slideShow">
                <ul class="slides" style="height: 242px; width: 242px; overflow: hidden;">
                     <li class="slide selected" style="height: 242px; width: 242px; overflow: hidden; position: absolute;"><img border="0" width="240" height="240" class="img-sp-big" alt="<?php echo $productname;?>" src="<?php echo $this->config->item('base_url').$imgpath;?>?size=240x240"></li>
                </ul>
                <ul class="navigation img-sp-small">
                                        <li class="">
                        <a class="page cboxElement" title="<?php echo $productname;?>" href="<?php echo $this->config->item('base_url').$imgpath;?>" rel="colorbox-warehouse">
                            <img height="40px;" title="<?php echo $productname;?>" alt="<?php echo $productname;?>" src="<?php echo $this->config->item('base_url').$imgpath;?>?size=40x40"></a>
                    </li>
                 </ul>
            </div>
        </div>

    <div class="ew_boxlike fll">
    <p class="ew_nl">Có <span><?php echo $like;?></span> người thích sản phẩm này</p>
 
    <div id="like_info" class="ngthich-sp-b clb">
                <a rel="738603" class="txt-blue-n like like_ware" href="javascript:void(0)">Thích</a>
            </div>
</div>        
 </div>
    <div class="ew_rightd flr">
        <div class="ew_giab fll full">
            Giá bán : <span class="ew_gbtn"><?php echo $price.' '.$unit;?></span>
            <span class="ew_bttb">
            	<?php if(!isset($_SESSION['custkey'])):?>
            	<a onclick="alert('Bạn chưa đăng nhập, vui lòng đăng nhập trước!')" href="javascript:void(0)">
            	<?php else:?>
            	<a  href="<?php echo $this->config->item('base_url'); ?>index.php/checkout/addtocart/<?php echo $proid?>" >
            	<?php endif;?>
            	<img src="<?php echo $this->config->item('base_url').$this->config->item('template'); ?>images/cart.png"></a>
            	
            	</span>
        </div>
 
        <div class="ew_td fll full paddingBottom10">Trao đổi: <a href="#">Hỏi đáp về sản phẩm <?php echo $productname;?></a></div>
                
                <div style="width: 474px; padding: 10px 0px;" class="ew_htdt fll">
	            <p class="ew_btb">
	               Sản phẩm :<a style="font-weight: bold; color: #034B8A;" href="#"><?php echo $productname;?></a>
	            </p>
                </div>
                
        
			<div class="f-w100 m-15 news sp-new pro-detail">
			    <div class="">
			        <table cellspacing="0" cellpadding="6" border="0" width="474px" class="tbl-sp">
			                        <tbody><tr class="tr-1">
			                <td class="td-title tbl-td-end" colspan="2">Mô tả sản phẩm</td>
			            </tr>
			            <?php foreach($properties as $row){?>
			            <tr class="tr-0">
			                <td align="right" width="35%"><strong><?php echo $row->propertiesname;?></strong></td>
			                <td class="tbl-td-end">
			                       <a href="#"><?php echo $row->description;?>/a>
			                </td>
			            </tr>
			            <?php }?>                 
			        </tbody></table>
			    </div>
			</div>     
			   
			<div class="ew_ly full">
			<span>Lưu ý:</span>
			Sản phẩm mua rồi không trả lại đối với thực phẩm.</div>
			<div class="f-w100 m-15 news sp-new pro-detail"><?php echo $content;?>
			</div>
			
			<div class="f-w100 m-15 dmsp-bottom">
            <h3><?php echo $catename;?><span></span></h3>
            <strong>Các sản phẩm có thể  bạn quan tâm: </strong>
            <?php foreach($productview as $row){?>
                    <a href="<?php echo $this->config->item('base_url'); ?>/index.php/sanpham/index/<?php echo $row->productid.'/'.$row->cateid; ?>"><?php echo $row->productname; ?></a>,&nbsp;
                <?php }?>
           </div>
</div>
</div>
</div>